var mongoose = require('mongoose'),
    Schema = mongoose.Schema;
var ConfigurationSchema = new Schema({
  name: String,
  svnNo:String,
  address: String,
  phase:String,
  author: String,
  status: String,
  endDate:{ type: Date, default: Date.now }
  remark: String
});
mongoose.model('Configuration', ConfigurationSchema);

var ProdjectSchema = new Schema({
  name: String,
  configuration: [ConfigurationSchema]
});
mongoose.model('Project', ProdjectSchema);